Home
last modified time | relevance | path

Searched hist:b062ad86 (Results 1 – 2 of 2) sorted by relevance

/qemu/
H A Dqemu-io-cmds.cb062ad86 Tue May 12 15:10:56 GMT 2015 Eric Blake <eblake@redhat.com> qemu-io: Use getopt() correctly

POSIX says getopt() returns -1 on completion. While Linux happens
to define EOF as -1, this definition is not required by POSIX, and
there may be platforms where checking for EOF instead of -1 would
lead to an infinite loop.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
H A Dqemu-io.cb062ad86 Tue May 12 15:10:56 GMT 2015 Eric Blake <eblake@redhat.com> qemu-io: Use getopt() correctly

POSIX says getopt() returns -1 on completion. While Linux happens
to define EOF as -1, this definition is not required by POSIX, and
there may be platforms where checking for EOF instead of -1 would
lead to an infinite loop.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>